package ms.maplestory.boot.client.character.quest.reward;

import lombok.Getter;
import lombok.Setter;
import ms.maplestory.boot.client.character.Char;
import ms.maplestory.boot.loaders.DatSerializable;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

@Getter
@Setter
public class QuestBuffItemReward implements QuestReward {

    private int buffItemID;
    private int status;

    public QuestBuffItemReward() {
    }

    public QuestBuffItemReward(int buffItemID, int status) {
        this.buffItemID = buffItemID;
        this.status = status;
    }


    @Override
    public void giveReward(Char chr) {

    }

    @Override
    public void write(DataOutputStream dos) throws IOException {
        dos.writeInt(getBuffItemID());
        dos.writeInt(getStatus());
    }

    @Override
    public DatSerializable load(DataInputStream dis) throws IOException {
        return new QuestBuffItemReward(dis.readInt(), dis.readInt());
    }
}
